import Layout from "@/layout/index.vue";

export const docFileTemplateRoutes = [
    {
        path: '/document',
        component: Layout,
        hidden: true,
        children: [
            {
                permissions: ['doc:docFileTemplate:update'],
                path: 'fileTemplate/view/:templateId(\\d+)',
                component: () => import('@/views/document/fileTemplate/templateView.vue'),
                name: 'DocFileTemplateView',
                meta: { title: '公文模板详情', activeMenu: '/document/template' }
            }
        ]
    },
    {
        path: '/document',
        hidden: true,
        children: [
            {
                path: 'fileTemplate/openMainFile/:templateId(\\d+)',
                component: () => import('@/views/document/fileTemplate/templateMainFile.vue'),
                name: 'DocTemplateMainFile',
                meta: { title: '公文模板正文' }
            },
            {
                path: 'fileTemplate/openApprovalFile/:templateId(\\d+)',
                component: () => import('@/views/document/fileTemplate/templateApprovalFile.vue'),
                name: 'DocTemplateApprovalFile',
                meta: { title: '公文模板呈批表' }
            }
        ]
    }
]